﻿using System;
using Config;
using UnityEngine;

public class DemoScript : MonoBehaviour
{
    private void Start()
    {
        var item = Config.ConfigFinder<ExampleConfig1Item>.Find(1);
        
        Debug.Log("====item.int_arg====");
        Debug.Log(item.int_arg);
        
        Debug.Log("====item.int_arg2====");
        for (var i = 0; i < item.int_arg2.Length; i++)
        {
            Debug.Log($"[{i}] {item.int_arg2[i]}");
        }
        
        Debug.Log("====item.int_arg3====");
        for (var i = 0; i < item.int_arg3.Length; i++)
        {
            var arr = item.int_arg3[i];
            for (int j = 0; j < arr.Length; j++)
            {
                Debug.Log($"[{i}][{j}] {arr[j]}");
            }
        }
        
        Debug.Log("====item.time====");
        Debug.Log(item.time);
        
        Debug.Log("====item.time2====");
        Debug.Log(item.time2);
        
        Debug.Log("====item.time3====");
        Debug.Log(item.time3);
    }
}